package com.general.template.controller;

import com.general.template.enums.ResultEnum;
import com.general.template.utils.Result;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: 杰哥
 * Date: 2020/12/19 13:48
 * @Description:
 **/
@RestController
public class ExceptionController {

    @ResponseBody
    @CrossOrigin(origins = "*",maxAge = 3600)
    @RequestMapping("/notLogin")
    public Result<Object> loginexception() {
        return new Result<>(ResultEnum.NOT_LOGIN);
    }

}
